From b3c8af5814936eb99e2377428330c9938df67e43 Mon Sep 17 00:00:00 2001 From: Tim Deegan Date: Mon, 26 Feb 2007 17:20:36 +0000 Subject: [PATCH] [HVM][SVM] Save/Restore: Remove commented out code Code not needed by SVM as the "VM_ENTRY_CONTROLS" register doesn't exist. Signed off: Mats Petersson (mats.petersson@amd.com) --- xen/arch/x86/hvm/svm/svm.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/xen/arch/x86/hvm/svm/svm.c b/xen/arch/x86/hvm/svm/svm.c index fcff16a67c..1e9d3eea24 100644 --- a/xen/arch/x86/hvm/svm/svm.c +++ b/xen/arch/x86/hvm/svm/svm.c @@ -502,15 +502,6 @@ int svm_vmcb_restore(struct vcpu *v, struct hvm_hw_cpu *c) } skip_cr3: -#if defined(__x86_64__) && 0 - if (vmx_long_mode_enabled(v)) { - unsigned long vm_entry_value; - vm_entry_value = __vmread(VM_ENTRY_CONTROLS); - vm_entry_value |= VM_ENTRY_IA32E_MODE; - __vmwrite(VM_ENTRY_CONTROLS, vm_entry_value); - } -#endif - vmcb->cr4 = c->cr4 | SVM_CR4_HOST_MASK; v->arch.hvm_svm.cpu_shadow_cr4 = c->cr4; -- 2.30.2